package com.example.demo.model;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 25228
 * Date: 2025-06-08
 * Time: 14:30
 */
@Data

public class PageRequest {
    private Integer currentPage=1;
    private Integer pageSize=10;
    private PageResult pageResult;

    public Integer getOffset() {
        return (currentPage-1)*pageSize;
    }

    private Integer offset;
}
